package com.trivia.restResponses

class GetAllLevelsResponse extends RestResponse {
	
	def friends=[]
	
	def levels
	
	def ownProperties(){
		intermediateXML = ""
		levels.each {
			intermediateXML += "<level id=\"" + it.id + "\">"
			intermediateXML += "<label>" + it.label + "</label>"
			intermediateXML += "<questionQuantity>" + it.questionQuantity + "</questionQuantity>"
			intermediateXML += "<description>" + it.description + "</description>"
			intermediateXML += "</level>"
		}
		intermediateXML
	}
}
